Xbasic

strtran_multi_expressions Function

Syntax

C STRTRAN_MULTI_EXPRESSIONS(C character,C pairs)

Arguments

character

String in which you want to perform a search and replace operation.

pairs

A CR-LF delimited list of search and replace values. Each row in the list has this format: searchString=replacementExpression If a replacementExpression contains any search strings, you can force the replacement to occur recursively by using a double = sign. e.g. searchString==replacementExpression Each = sign causes an additional recursion. For example: searchString===replacementExpression will recurse over the data 3 times.

Description

Replaces occurrences of tokens before '=' with results of expression after '=' in cr-lf delimited list of pairs compare is case sensitive.

See Also